package com.vasthu.api.dao;

import com.vasthu.api.domain.Role;
import java.util.*;
import java.sql.*;

public interface RoleDAO {

	public boolean insertRole(Connection con, Role role);

	public Role getRoleById(Connection con, long roleId);
	
	public Role getRoleByName(Connection con, String roleName);
	
	public boolean deleteRoleById(Connection con, long roleId);
    
    public List<Role> getAllRoles(Connection con);
	
}